package service;

import android.app.IntentService;
import android.content.Context;
import android.content.Intent;

/**
 * Created by TJ on 2016/3/26.
 */
public class NotificationService extends IntentService {
    public NotificationService() {
        super("notificationService");
    }

    @Override
    protected void onHandleIntent(Intent intent) {
        String customContent = intent.getStringExtra("customContent");// 处理接收到的通知
        String whichPush = intent.getStringExtra("which_push");//百度云推送或腾讯信鸽
        Context context = this.getApplicationContext();
//        int count = TaskManager.getInstance(context).processNotification(customContent, whichPush);
//        if (count > 0) {
//            sendBroadcast(new Intent(CommonValue.TASK_CHANGED_ACTION));
//            String title = intent.getStringExtra("title");
//            if (title == null) return;
//            String content = intent.getStringExtra("content");
//            NotificationTools.notifyBroadcast(context, ClickForwardReceiver.class, title, content);
//        }
    }
}
